<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE HTML>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<base href="http://${request.serverName}:${request.serverPort?string("0")}${request.contextPath}/" />
<title><@title/></title>

<link rel="stylesheet" href="${request.contextPath}/libs/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css"></link>
<link rel="stylesheet" href="libs/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" href="libs/jquery-ui-1.10.3.custom/css/ui-lightness/jquery-ui-1.10.3.custom.css"></link>
<link rel="stylesheet" href="libs/jqgrid/css/ui.jqgrid.css"></link>






<style type="text/css">
.row-fluid{
	margin-top: 50px;
}
</style>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
     <script src="libs/bootstrap/js/html5shiv.js"></script>
<![endif]-->

</head>
<body>
	<#if Session["currUser"]?exists>
		<#assign currentUser = Session["currUser"]>
	</#if>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container-fluid">
            	<button type="button" class="btn btn-navbar" data-toggle="collapse"
					data-target=".nav-collapse">
					<span class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
                <a class="brand">广大物流云平台</a>
                
                <div class="nav-collapse collapse">
                    <p class="navbar-text pull-right">
                   		<a style="color: #35B4E9;text-decoration: none;">欢迎您!</a><a style="margin-left:5px;color: #FFFFFF;text-decoration: none;">${currentUser.userName?if_exists}</a>
                   		<a style="margin-left:20px;color: #FFFFFF;" href="#">修改密码</a>
                   		<a style="margin-left:20px;color: #FFFFFF;" href="j_spring_security_logout">登出</a>
                    </p>
                </div>
                <!--/.nav-collapse -->
            </div>
        </div>
    </div>

    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span2">
                <div class="well sidebar-nav">
                    <ul class="nav nav-list" id="listNav">
                        
                    </ul>
                    
                </div>
                <!--/.well -->
            </div>
            
            <div class="span10"  style="height:500px">
                <@main/>
            </div>
            
            
        </div>
        <hr>
      
        <footer>
           footer
        </footer>
    </div>
    
    <script src="libs/bootstrap/js/jquery.js"></script>
  	<script src="libs/bootstrap/js/bootstrap.js"></script>
  	
    <script type="text/javascript" src="libs/jqgrid/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="libs/jqgrid/js/i18n/grid.locale-cn.js"></script>
	<script type="text/javascript" src="libs/jqgrid/js/jquery.jqGrid.min.js"></script>
	<script type="text/javascript" src="libs/jqgrid/js/json2.js"></script>
	<script type="text/javascript" src="libs/jqgrid/js/general.locale-cn.js"></script>
	<script type="text/javascript" src="libs/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.js"></script>
	<script type="text/javascript" src="libs/jqgrid/js/common.js"></script>
    
    <!-- ztree -->
    <script type="text/javascript" src="libs/ztree/js/jquery.ztree.core-3.5.js"></script>
  	<script type="text/javascript" src="libs/ztree/js/jquery.ztree.excheck-3.5.js"></script>


    <@js/>
    <script type="text/javascript">
       
       	var contextPath = "${request.contextPath}";
        var requestPath = window.location.pathname;
        var paths = requestPath.substring(contextPath.length).split('/');
        for(var i=0;i<paths.length;i++){
            var path = paths[i];
            if(path.length>0){
                console.log(path);
                if(path.indexOf('.')>0)
                {
                    $(".nav-"+path.substring(0, path.lastIndexOf("."))).addClass("active");
                }
                else
                {
                    $(".nav-"+path).addClass("active");
                }
            }
        }
        <@script/>
    </script>
 
</body>

</html>
